package org.chickymate.client.view.panel;

import org.chickymate.client.model.ModelDTO;
import org.chickymate.client.model.UrlDTO;

import com.google.gwt.user.client.ui.Widget;

public class UrlView extends AbstractModelView {

	public UrlView(ModelDTO model) {
		super(model);
	}
	
	@Override
	protected Widget getContent(ModelDTO model) {
		UrlDTO url = (UrlDTO)model;
		return createUrlAnchor(url.getUrl());
	}
	
	@Override
	protected String getDateContent(ModelDTO model) {
		return "With votes : ";
	}

}
